package Pages;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;



public class Marsu {
	
	public static int upperLeftX;
	public static int upperLeftY;
	
	public static void main(String[] args) {
		
		 MainPageInterface myInterface=new MainPageInterface();
		 myInterface.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		 myInterface.setSize(980, 750);
		 Toolkit kit = myInterface.getToolkit();
		 Dimension screenSize = kit.getScreenSize();
		 int screenWidth = screenSize.width;
		 int screenHeight = screenSize.height;
		 Dimension windowSize = myInterface.getSize();
		 int windowWidth = windowSize.width;
		 int windowHeight = windowSize.height;
		 upperLeftX = (screenWidth - windowWidth)/2;
		 upperLeftY = (screenHeight - windowHeight)/2;
		 myInterface.setLocation(upperLeftX, upperLeftY);
		 myInterface.setVisible(true);
		
	}


}
